execute store result score #health temp run data get entity @s data.Health
$execute store result entity @s data.Health int 1 run scoreboard players remove #health temp $(value)
execute if score #health temp matches ..0 run function vs:system/game_ctrol/stream_barrier_spawner/kill

scoreboard players reset #health temp

function vs:system/game_ctrol/stream_barrier_spawner/force_text_update